package com.mind.core.net.msg.sys;

import com.mind.core.net.msg.Message;
import com.mind.core.net.msg.MessageType;
import com.mind.core.net.msg.SysInternalMessage;



/**
 * 客户端连接的Session消息,此消息是系统内部模拟的消息,用于表示用户的连接的状态
 * 
 * 
 */
public class SessionMessage extends SysInternalMessage implements Message {
	/** Session创建 */
	public static final int SESSION_OPENED = 1;
	/** Session关闭 */
	public static final int SESSION_CLOSED = 0;
	private  int sessionType;
	public SessionMessage(){};
	
	public SessionMessage(int type) {
		super.setTypeName("SYS_SESSION");
		this.sessionType = type;
	}

	public int getSessionType() {
		return sessionType;
	}

	@Override
	public short getMessageType() {
		return MessageType.SYS_SESSION;
	}
	public void setResolveId(String resolveId){
		
	}
	public String getResolveId(){
		return null;
	}
}
